package org.example.demo01.service.impl;

import org.example.demo01.dao.ReceiptDao;
import org.example.demo01.pojo.Receipt;
import org.example.demo01.service.ReceiptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

@Service("receiptService")
public class ReceiptServiceimpI implements ReceiptService {
    @Autowired
    @Qualifier("receiptDao")
    private ReceiptDao receiptDao;
    // 添加用户的方法
    @Override
    public void addRecept(Receipt receipt) {
        receiptDao.addReceipt(receipt);
    }
}
